﻿using DAL;
using DAL.YQZS;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL.YQZS
{
    public class TrackBLL
    {
        private readonly DataContext _dataContext;
        private readonly TrackDAL _trackDAL;

        public TrackBLL()
        {
            _dataContext = new DataContext();
            _trackDAL = new TrackDAL(_dataContext);
        }

        public async Task DeleteAsync(Guid id)
        {
            await _trackDAL.DeleteAsync(id);
            _trackDAL.SaveChangesAsync();
        }
    }
}
